<?php
include_once('includes/evolt/session.php');
include_once('includes/classes/index.php');
require_once('includes/xajax/xajax_core/xajax.inc.php');

$xajax = new xajax();
$xajax->configure('javascript URI', 'includes/xajax/');
//$xajax->configure('debug',true);

$rqstStat =& $xajax->registerFunction('showStat');
$rqstStat->setParameter(0, XAJAX_JS_VALUE, 0);

$xajax->processRequest();

function showStat($a) {
	//global $index;
	$index = new Index ();
	$stats = $index->ngStat($a);
	$response = new xajaxResponse();
	$response->assign("divstat", "innerHTML", $stats);
	return $response;
}



$smarty->assign('rqstStat', $rqstStat);
$smarty->assign('xajax', $xajax);
?>